<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>props</title>
  </head>
  <div id="app"></div>

  <body>
    <script src="../../public/js/react.development.js"></script>
    <script src="../../public/js/react-dom.development.js"></script>
    <script src="../../public/js/babel.min.js"></script>
    <script type="text/babel">
      class Person extends React.Component {
        StringRef() {
          console.log(this.refs.hello)
        }
        render() {
          return (
            <div ref="hello" onClick="StringRef">
              Hello
            </div>
          );
        }
      }
      ReactDOM.render(<Person />, document.getElementById("app"));
    </script>
  </body>
</html>
